package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.core.node.ZTreeNode;
import com.stylefeng.guns.modular.system.model.CmsArticleCategory;
import com.stylefeng.guns.modular.system.dao.CmsArticleCategoryMapper;
import com.stylefeng.guns.modular.system.service.ICmsArticleCategoryService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-10-26
 */
@Service
public class CmsArticleCategoryServiceImpl extends ServiceImpl<CmsArticleCategoryMapper, CmsArticleCategory> implements ICmsArticleCategoryService {

    @Resource
    private CmsArticleCategoryMapper cmsArticleCategoryMapper;
    public List<ZTreeNode> selectTreeList(){
        return cmsArticleCategoryMapper.selectTreeList();
    }
}
